package com.lb.pdm.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * <p>
 * 户籍信息表
 * </p>
 *
 * @author pdm
 * @since 2025-10-29
 */
@Data
@TableName("household_info")
@Schema(name = "HouseholdInfo对象", description = "户籍信息表")
public class HouseholdInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "户籍ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "户号")
    @TableField("household_number")
    private String householdNumber;

    @Schema(description = "户主人员ID")
    @TableField("householder_id")
    private Long householderId;

    @Schema(description = "户口类型：1-家庭户，2-集体户")
    @TableField("household_type")
    private Byte householdType;

    @Schema(description = "户籍地址")
    @TableField("address")
    private String address;

    @Schema(description = "省份")
    @TableField("province")
    private String province;

    @Schema(description = "城市")
    @TableField("city")
    private String city;

    @Schema(description = "区县")
    @TableField("district")
    private String district;

    @Schema(description = "街道")
    @TableField("street")
    private String street;

    @Schema(description = "社区")
    @TableField("community")
    private String community;

    @Schema(description = "邮政编码")
    @TableField("postal_code")
    private String postalCode;

    @Schema(description = "派出所")
    @TableField("police_station")
    private String policeStation;

    @Schema(description = "立户日期")
    @TableField("register_date")
    private Date registerDate;

    @Schema(description = "状态：1-正常，0-注销")
    @TableField("status")
    private Byte status;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "更新人ID")
    @TableField("update_by")
    private Long updateBy;
}
